import util from "@/libs/util"
// 当前登录用户-公司信息
export function getOrgBaseInfo (params) {
  return util.http({
    url: `/biz-maint/maint/maintOrgInfo/orgBaseInfo`,
    method: "get",
    params
  })
}

// 修改公司基本信息(维保)
export function editMaintOrgInfo (data) {
  return util.http({
    url: `/biz-maint/maint/maintOrgInfo/editMaintOrgInfo`,
    method: "post",
    data
  })
}


// 修改公司基本信息(维保)
export function editPersonCharge (data) {
  return util.http({
    url: `/biz-maint/maint/maintOrgInfo/editPersonCharge`,
    method: "post",
    data
  })
}


// 合同管理-合同列表-分页
export function getselectContractList (data) {
  return util.http({
    url: `/biz-maint/maint/contract/selectContractList`,
    method: "post",
    data
  })
}

// 合同管理-合同列表-新增
export function getaddContractList (data) {
  return util.http({
    url: `/biz-maint/maint/contract/addContractList`,
    method: "post",
    data
  })
}


// 合同管理-合同列表-使用单位列表
export function getselectUseOrgList (data) {
  return util.http({
    url: `/biz-maint/maint/contract/selectUseOrgList`,
    method: "post",
    data
  })
}

// 合同管理-合同列表-修改
export function geteditContract (data) {
  return util.http({
    url: `/biz-maint/maint/contract/editContract`,
    method: "post",
    data
  })
}

// 合同管理-合同列表-删除
export function getdeleteContract (data) {
  return util.http({
    url: `/biz-maint/maint/contract/deleteContract`,
    method: "post",
    data
  })
}

// 合同管理-合同项列表-分页
export function getselectContractItemList (data) {
  return util.http({
    url: `/biz-maint/maint/contract/selectContractItemList`,
    method: "post",
    data
  })
}

// 合同管理-合同项列表-新增
export function getaddContractItem (data) {
  return util.http({
    url: `/biz-maint/maint/contract/addContractItem`,
    method: "post",
    data
  })
}

// 合同管理-合同项列表-修改
export function geteditContractItem (data) {
  return util.http({
    url: `/biz-maint/maint/contract/editContractItem`,
    method: "post",
    data
  })
}

// 合同管理-合同项列表-删除
export function getdeleteContractItem (data) {
  return util.http({
    url: `/biz-maint/maint/contract/deleteContractItem`,
    method: "post",
    data
  })
}

// 保险合同设备-本单位的设备列表
export function getsselectMaintEleList (data) {
  return util.http({
    url: `/biz-maint/maint/insurance/selectMaintEleList`,
    method: "post",
    data
  })
}

// 保险合同列表
export function getselectEleInsuranceList (data) {
  return util.http({
    url: `/biz-maint/maint/insurance/selectEleInsuranceList`,
    method: "post",
    data
  })
}

// 保险合同添加
export function getaddEleInsurance (data) {
  return util.http({
    url: `/biz-maint/maint/insurance/addEleInsurance`,
    method: "post",
    data
  })
}

// 保险合同修改
export function geteditEleInsurance (data) {
  return util.http({
    url: `/biz-maint/maint/insurance/editEleInsurance`,
    method: "post",
    data
  })
}
// 保险合同删除
export function getdelEleInsurance (data) {
  return util.http({
    url: `/biz-maint/maint/insurance/delEleInsurance`,
    method: "post",
    data
  })
}

// 保险合同设备列表
export function getselectEleInsuranceItemList (data) {
  return util.http({
    url: `/biz-maint/maint/insurance/selectEleInsuranceItemList`,
    method: "post",
    data
  })
}

// 保险合同设备-新增
export function getaddEleInsuranceItemList (data) {
  return util.http({
    url: `/biz-maint/maint/insurance/addEleInsuranceItemList`,
    method: "post",
    data
  })
}

// 保险合同设备-删除
export function getdelEleInsuranceItemList (data) {
  return util.http({
    url: `/biz-maint/maint/insurance/delEleInsuranceItemList`,
    method: "post",
    data
  })
}

